<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <jsp:include page="../header.jsp"></jsp:include>
</head>

<body>
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">分销结算</h1>
</header>
<jsp:include page="../commonMenu.jsp"></jsp:include>

<div class="mui-content">
    <div style="padding: 10px 10px;">
        <div id="segmentedControl" class="mui-segmented-control">
            <a class="mui-control-item"
               href="${pageContext.request.contextPath}/distributor/info/accounts">结算记录</a>
            <a class="mui-control-item mui-active"
               href="${pageContext.request.contextPath}/distributor/info/record">分销记录</a>
        </div>
    </div>
    <c:forEach items="${recordList}" var="vo">
        <div class="mui-card">
            <div class="mui-card-header">
                下单时间：<fmt:formatDate value="${vo.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                <span class="mui-text-right mui-btn-danger ">
                    <c:choose>
                        <c:when test="${vo.status eq 0}">
                            未结算
                        </c:when>
                        <c:when test="${vo.status eq 1}">
                            已经结算
                        </c:when>
                    </c:choose>
                </span>
            </div>
            <div class="mui-card-content">
                <div class="mui-card-content-inner">
                    订单ID：${vo.orderSn}
                    -订单金额：${vo.orderAmount}
                </div>
            </div>
            <div class="mui-card-footer">
                &nbsp;
                <span class="mui-pull-right">
                    分销金额：￥${vo.amount/100}
                </span>
            </div>
        </div>
    </c:forEach>
</div>
</body>
<jsp:include page="../footer.jsp"></jsp:include>
<script src="${pageContext.request.contextPath}/static/mui/js/echarts-all.js"></script>

</html>